package com.lottery.common.service;

import javax.servlet.http.HttpServletRequest;

public interface DecryptToObjectService {

    //api调用以下方法
    <T> T decryptApiToObject(String data, Class<T> pojoCalss) throws Exception;

    String decryptApiToString(String data) throws Exception;

    <T> T jsonToObject(String data, Class<T> pojoCalss);

    <T> T requestToObject(HttpServletRequest request, Class<T> pojoCalss) throws Exception;

    <T> T decryptRequestToObject(HttpServletRequest request, Class<T> pojoCalss) throws Exception;

    //web调用以下方法
    <T> T decryptWebToObject(String data, Class<T> pojoCalss) throws Exception;

    <T> T webJsonStrToObject(String data, Class<T> pojoCalss) throws Exception;

    <T> T webBaseToObject(String data, Class<T> pojoCalss) throws Exception;

    String decryptWebToString(String data) throws Exception;

}
